﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Yugi.Client
{
    public class TableModel : BaseModel
    {
        public Table Table { get; set; }
        /// <summary>
        /// // ban Choi Dang Cho Ket Qua Tu Server
        /// </summary>
        public bool IsProcess { get; set; }
        public IInvoke Presenter { get; set; }
        public SupervisorModel YSupervisorModel { get; set; }
        private EnumTable state_now;
        public EnumTable YStateNow
        {
            get
            {
                return state_now;
            }
            set
            {
                state_now = value;
                this.OnChange("YStateNow");
            }

        }
        public TableModel()
        {
            IsProcess = false;
        }
        public void ReceiveMessageFromSupervisor(ClientMSG Message, params object[] param)
        {
            switch (Message)
            {
            
                default:
                    Presenter.Do(Message, param);
                    break;
            }
        }
        public void Reset()
        {
            
        }
    }
}
